package org.example.myleet.p720;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("world".equals(solution.longestWord(new String[]{"w","wo","wor","worl", "world"})));
        Assert.isTrue("apple".equals(solution.longestWord(new String[]{"a", "banana", "app", "appl", "ap", "apply", "apple"})));
        Assert.isTrue("".equals(solution.longestWord(new String[]{"appl", "apply", "apple"})));
    }
}
